function url(){
    if (window.location.href.indexOf('localhost') !== -1){
        return "http://localhost:8099/request/open";
    }else {
        return "http://118.89.136.159/request/open"
    }
}

function skip_url(){
    if (window.location.href.indexOf('localhost') !== -1){
        return "http://localhost:8080/#/";
    }else {
        return "http://118.89.136.159/#/"
    }
}

let serverUrl = {
    localhost: url(),
    skipUrl:skip_url(),
    webSocket:window.location.href.indexOf('localhost') !== -1?"ws://localhost:8099/webSocket/2023/4":"wss://plumgpt.com/webSocket/2023/4"
}

exports.serverUrl = serverUrl
